package com.adou.d16.ps;

import java.io.FileNotFoundException;
import java.io.PrintStream;

public class PSTest1 {
    public static void main(String[] args) {
        try(// 1.创建一个打印流管道
            final PrintStream ps = new PrintStream("d1-helloword-app\\src\\it08.txt");

            ) {
            ps.println(97);
            ps.println('a');
            ps.println("我爱你中国");
            ps.println(98.2);

            ps.write(97);


        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
